from django.db import models
from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
    # 继承了username、password、email
    # 添加属性
    # 手机号
    mobile = models.CharField(max_length=11)
    # 邮箱是否激活
    email_active = models.BooleanField(default=False)

    class Meta:
        # 指定类对应的表名
        db_table = 'tb_users'
